﻿using Quartz;
/*********************************************************************
 * CopyRight (c) 2009-2014 HangJing Teconology. All Rights Reserved.
 * FileName : 
 * Function : 
 * Created by jijunjian at 2014-11-14 15:24:53.
 * E-Mail   : jijunjian@ihangjing.com
*********************************************************************/
using System;
using Hangjing.DBUtility;
using System.Data;

namespace Hangjing.Job
{
    /// <summary>
    /// 商家自己调度的订单，5分钟未调度，转到客服调度
    /// </summary>
    public class self2ServiceDispatch : Quartz.IJob
    {
        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="context"></param>
        public void Execute(IJobExecutionContext context)
        {
            try
            {
                logger.Info("self2ServiceDispatch任务开始运行");


                SQLHelper.ExecuteNonQuery(CommandType.StoredProcedure, "custorder_self2ServiceDispatch", null);


                logger.Info("self2ServiceDispatch任务运行结束");
            }
            catch (Exception ex)
            {
                logger.Error("self2ServiceDispatch任务运行运行异常：" + ex);
            }

        }
    }
}
